package cn.enited.devtools.apiaggregator.service;

import cn.enited.devtools.apiaggregator.dto.ProjectDto;
import cn.enited.devtools.apiaggregator.entity.Project;
import cn.enited.devtools.apiaggregator.repo.ProjectRepository;
import cn.enited.devtools.apiaggregator.vo.ProjectParamVo;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ProjectService extends BaseService<ProjectRepository, Project> {

    ProjectDto get(Long bizId);

    ProjectDto get(String name);

    List<ProjectDto> findAll(ProjectParamVo param);

    Page<ProjectDto> findPage(ProjectParamVo param);

    List<String> getAllProjectNames();

    Long add(ProjectDto project);

    void update(ProjectDto project);

    void delete(Long bizId);
}
